package part1.language_basis.day05;

//九九乘法表
public class MutiTable {
    public static void main(String[] args) {

        for (int i = 1; i <=9 ; i++) {
            for (int j=1; j<=i;j++){
                if (j==3){
                    break;
                }
                System.out.print(j+"*"+i+"="+i*j+"\t");
            }
            System.out.println();
        }

        /*
        int i=1;
        for (int j = 1; j <=i; j++) {
            System.out.print(j+"*"+i+"="+i*j+"\t");
        }
        System.out.println();

        int i=2;
        for (int j = 1; j <=i; j++) {
            System.out.print(j+"*"+i+"="+i*j+"\t");
        }
        System.out.println();

        int i=3;
        for (int j = 1; j <=i; j++) {
            System.out.print(j+"*"+i+"="+i*j+"\t");
        }
        System.out.println();

        .....

        int i=9;
        for (int j = 1; j <=i; j++) {
            System.out.print(j+"*"+i+"="+i*j+"\t");
        }
        System.out.println();

         */
    }
}
